package com.wen.yygh.hosp.repository;


import com.wen.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Wenjl
 */
@Repository
public interface HospitalRepository  extends MongoRepository<Hospital,String> {
    /**
     *
     * @param hoscode
     * @return
     */
    Hospital findHospitalByHoscode(String hoscode);


    Hospital findHospitalById(String id);

    List<Hospital> findHospByHosnameLike(String hosname);
}
